$(function () {
    $("#voucher_game_name li").eq(0).addClass('on');//添加样式

    $("#server").change(function () {
        area_num = $(this).val();
    });
});

function redirect(game_id) {
    window.location.href = domain + "/index.php?s=libao/game/game_id/" + game_id;
}

function getLibao() {
    $.ajax({
        type: 'post',
        url: domain + "/index.php?s=libao/libao",
        data: {
            'game_id': game_id,
            'tag': tag,
            'general': general,
            'port': port,
            'enname': enname,
            'area_num': area_num
        },
        dataType: 'json',
        success: function (data) {
            if (!data['ret']) {
                $("#cardNo").val(data['card']);
            } else {
                alert(data['card']);
                return;
            }
        }
    });
}